


#ifndef __key_h__
#define __key_h__


#define     UP 			0x0C
#define		DOWN		0x0D
#define		ENT			0x0E
#define		ESC			0x0F
#define		CLR			0x0A
#define 	NOKEY		0xFF


sbit  LED   = P3^2;
sbit  Relay = P3^5;
sbit  Beep  = P3^4;


extern volatile uchar key_value,key_line;
extern volatile uchar key_state,key_time;
extern volatile uchar Lock_Flag;
extern volatile uchar Check_Count;
extern volatile uchar Work_State;

extern uchar Key_Chk(void);
extern void Key_Func(void);


#endif
